﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ELab.Student
{
    public partial class frmPassword : Form
    {
        public string strRetPassword="";
        public frmPassword()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            strRetPassword = txtPassword.Text;
            DialogResult = DialogResult.OK;
            Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();

        }

        private void frmPassword_Load(object sender, EventArgs e)
        {
            this.Activate();
            txtPassword.Focus();
        }
    }
}
